/**
 * @author yan
 * @date 2025/8/21
 */
public class ti283 {
    class Solution {
        public void moveZeroes(int[] nums) {
            int n = nums.length;
            int index=0;
            for(int i =0;i<n;i++){
                if(nums[i]!=0){
                    int t= nums[i];
                    nums[i]=nums[index];
                    nums[index++]=t;
                }
            }
        }
    }

    public static void main(String[] args) {

    }
}
